<?php

/**
 * Subcontract form.
 *
 * @package    seth
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class SubcontractForm extends BaseSubcontractForm
{
  public function configure()
  {
      
      //Field Supplier    
      $this->widgetSchema['supplier'] = new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Supplier'), 'add_empty' => false, 'order_by'=>array('name','asc')));
      $this->validatorSchema['supplier'] = new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Supplier'))); 
      
      
      }
}
